﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Lest1 : IPrintCalculate
    {
        public int A { get; set; }
        public int B { get; set; }
        public void Addition()
        {
            Console.WriteLine("相加为："+(A+B));
        }

        public void Multiplication()
        {
            Console.WriteLine("相乘为："+(A*B));
        }
    }
    class Lest2 : IPrintCalculate
    {
        public int A { get; set; }
        public int B { get; set; }
        void IPrintCalculate.Addition()
        {
            Console.WriteLine("相加为：" + (A + B));
        }
        void IPrintCalculate.Multiplication()
        {
            Console.WriteLine("相乘为：" + (A * B));
        }
    }
}
